package com.hong.strategy;

/**
 * <br>TODO(描述该类的作用)</br>
 *
 * @author 533735
 * @version 1.0
 * @email wanghong3@dafycredit.com
 * @date 2019/1/18 18:37
 * @since 1.0
 */
public class Client {
    public static void main(String[] args) {
        Context context0 = new Context(new OperationAdd());
        int sum = context0.executeStrategy(8, 3);
        System.out.println(sum);
        Context context1 = new Context(new OperationSubstract());
        int diff = context1.executeStrategy(8, 3);
        System.out.println(diff);
    }
}
